<?php

$userid = get_loggedin_userid();

// Get variables
$gender = get_input('gender');

$client_id = get_input('client_id');

$result = greengar_set_gender($userid, $gender);
$result = userToArray($result, $client_id, FALSE);
echo json_encode(export_result(200, $result));

?>